package com.big.tree.feign.api;

import com.big.tree.feign.api.hystrix.UserFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "userFeignApi", value = "big-user",
        configuration = FeignClientProperties.FeignClientConfiguration.class, fallback = UserFeignHystrix.class)
public interface UserFeignApi {

    @GetMapping("/rpc/getOne")
    String getOne();
}

